The program will print:
Hours per Week 12 Hours per Semester 180 Ho Hum...
Remember that a variable is a small amount of computer memory that has been given a name. So far you have seen several names for variables:
NUM POUNDS VALUE MILE SUM CLASSES AGE
Names for variables are single words that the programmer picks. The names don't have to be real words, but it helps in understanding the program if they are. Look over the following rules. (Just read through them once or twice; you don't have to memorize them.)
So far we have been using variables that hold floating point numbers (those with a possible decimal point like the numbers on a hand calculator.) This type of variable is the most useful. These variables can hold numbers like 1.3, -45.78, 0.001, and can also hold numbers without a fractional part like 1.0, -23.0, 94.0 and others.
Which of the following are OK names to use for a variable that will hold a floating point number?
SUM GRAND TOTAL MyValue 16Candles SUM23 YEAR%